package com.cloud.mapper;

import com.cloud.entity.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author .
 * created in 2020/1/11 7:54
 */

@Repository
public interface EmpMapper {

    int addEmp(Employee employee);

    int delEmpById(@Param("id") int id);

    int delEmpByIds(@Param("ids") List<Integer> ids);

    int updateEmp(Employee employee);

    int findEmpCount(@Param("name") String name);

    List<Employee> findAll(@Param("page") int page, @Param("limit") int limit, @Param("name") String name);

    Employee findEmpByCondition(Employee employee);

}
